	<tr>
		<td height='90px'>
			<a href='nddg_main.php'><img src='img/bg_top.png' border='0'/></a>
		</td>
	</tr>
	<tr>
			<?
			if($user_idx!="")
			{
				?>
		<td height='55px' style="padding:0px;margin:0px;background:url('img/bg_top_menu_logined.png');">
			<form name="form_login" action="login_proc.php"  method="post" enctype="multipart/form-data"  id="form_login" >
			<div style='width:163px;height:55px;float:left;'><a href='nddg_db_main.php'><img src='img/button_top_menu_1.png' border='0'
				 onmouseover='menu_over(1);' onmouseout='menu_out(1);' onclick='menu_click(1);'
				 id='menu_img_1'
			/></a></div>
			<div style='width:164px;height:55px;float:left;'><a href='nddg_talk_main.php'><img src='img/button_top_menu_2.png' border='0'
				 onmouseover='menu_over(2);' onmouseout='menu_out(2);' onclick='menu_click(2);'
				 id='menu_img_2'
			/></a></div>
			<div style='width:163px;height:55px;float:left;'><a href='nddg_mento_main.php'><img src='img/button_top_menu_3.png' border='0'
				 onmouseover='menu_over(3);' onmouseout='menu_out(3);' onclick='menu_click(3);'
				 id='menu_img_3'
			/></a></div>

			<div style='width:490px; height:15px; float:left;'><span></span></div>
			<div style='width:226px; height:20px; float:left;'><span></span></div>
			<div style='width:95px; height:20px; float:left;'><span></span></div>
			<div style='width:11px; height:20px; float:left;'><span></span></div>
			<div style='width:95px; height:20px; float:left;'><span></span></div>
			<div style='width:8px; height:20px; float:left;'><span></span></div>
			<div style='width:48px; height:20px; float:left; cursor:pointer;' onclick="location.href='nddg_login.php';"><span></span></div>

			</form>
		</td>
				<?
			}
			else
			{
				?>
		<td height='55px' style="padding:0px;margin:0px;background:url('img/bg_top_menu.png');">
			<form name="form_login" action="login_proc.php"  method="post" enctype="multipart/form-data"  id="form_login" >
			<div style='width:163px;height:55px;float:left;'><a href='nddg_db_main.php'><img src='img/button_top_menu_1.png' border='0'
				 onmouseover='menu_over(1);' onmouseout='menu_out(1);' onclick='menu_click(1);'
				 id='menu_img_1'
			/></a></div>
			<div style='width:164px;height:55px;float:left;'><a href='nddg_talk_main.php'><img src='img/button_top_menu_2.png' border='0'
				 onmouseover='menu_over(2);' onmouseout='menu_out(2);' onclick='menu_click(2);'
				 id='menu_img_2'
			/></a></div>
			<div style='width:163px;height:55px;float:left;'><a href='nddg_mento_main.php'><img src='img/button_top_menu_3.png' border='0'
				 onmouseover='menu_over(3);' onmouseout='menu_out(3);' onclick='menu_click(3);'
				 id='menu_img_3'
			/></a></div>

			<div style='width:490px; height:15px; float:left;'><span></span></div>
			<div style='width:226px; height:20px; float:left;'><span></span></div>
			<div style='width:95px; height:20px; float:left;'><span><input type='text' name='login_mail' id='user_mail'  
				style=" width:95px; height:20px; border:0px; margind:0px; padding:0px; background:transparent;" value=""></span></div>
			<div style='width:11px; height:20px; float:left;'><span></span></div>
			<div style='width:95px; height:20px; float:left;'><span><input type='password' name='login_pwd' id='user_pwd' 
				style=" width:95px; height:20px; border:0px; margind:0px; padding:0px; background:transparent;" value="" onkeydown="if(event.keyCode==13) document.getElementById('form_login').submit();"></span></div>
			<div style='width:8px; height:20px; float:left;'><span></span></div>
			<div style='width:48px; height:20px; float:left; cursor:pointer;' onclick="document.getElementById('form_login').submit();"><span></span></div>

			</form>
		</td>
		<?
			}
			?>

	</tr>
	<!--tr>
		<td height='30px'>
			<a href='nddg_db_main.php'>데이터베이스</a> | <a href='nddg_talk_main.php'>이야기방</a> | <a href='nddg_mento_main.php'>멘토-멘티</a>
			<?
			if($user_idx!="")
			{
				?>
				<div style='float:right;'>
					<a href='nddg_login.php'>로그아웃</a>
				</div>
				<?
			}
			else
			{
				?>
				<div style='float:right;'>
					<form name="form_login" action="login_proc.php"  method="post" enctype="multipart/form-data"  id="form_login" >
						이메일 : <input type='text' name='login_mail' id='user_mail'  style=" width:122px;" value=""> 
						
						비밀번호 : <input type='password' name='login_pwd' id='user_pwd'  style=" width:122px;" value="" onkeydown="if(event.keyCode==13) document.getElementById('form_login').submit();"> 
						<input type='submit' value='로그인'>				<a style='cursor:pointer;'  onclick="find_pw_popup_open();">비밀번호 찾기 </a>
					</form>
				</div>
				<?
			}
				?>
		</td>
	</tr-->
	<tr>
		<td height='10px'>

		</td>
	</tr>
	<tr>
		<td height='10px'>
			<!--팝업창 코드 시작-->
			<div id="popup_base" style="position:absolute;background:black; width:100%;opacity:0.65;display:none;">
			</div>

			<div id="popup_user_lost" style="position:absolute;background-image: url(./img/user_lost.png); width:584px;height:237px; repead:no;display:none;">
				<div style="position:absolute;top:190px;left:125px;width:250px;height:20px;">
					<span>
						<input type='text' id="find_pw_user_name" style="background:transparent;border:0px; width:250px;">
					</span>
				</div>
				<div style="position:absolute;top:187px;left:385px;width:73px;height:32px;cursor:pointer;" onclick="find_pw_popup_send();"></div>
				<div style="position:absolute;top:0px;left:550px;width:32px;height:32px;cursor:pointer;" onclick="find_pw_popup_close();"></div>
					
			</div>

			<div id="popup_register" style="position:absolute;background-image: url(./img/popup_register.png); width:584px;height:234px; repead:no;display:none;">
				<div style="position:absolute;top:190px;left:125px;width:250px;height:20px;">
					<span>
					</span>
				</div>
				<div style="position:absolute;top:0px;left:550px;width:32px;height:32px;cursor:pointer;" onclick="register_popup_close();"></div>
				<div style="position:absolute;top:185px;left:214px;width:160px;height:30px;cursor:pointer;" onclick="register_popup_close();"></div>
					
			</div>

			<script>
//			blank_clear('user_mail');
			
			function register_popup_open()
			{
				$('#popup_base').height(document.body.scrollHeight);
				$('#popup_base').width(document.body.scrollWidth);
				
				$('#popup_base').css("left",0);
				$('#popup_base').css("top",0);
				$('#popup_base').css("display","");
				
				$('#popup_register').css("left",document.body.scrollWidth/2-292);
				$('#popup_register').css("top",document.body.scrollHeight/2-118);
				
				$('#popup_register').css("display","");
			
			}
			
			function register_popup_send()
			{
				var string = $("#fwrite").serialize(); 
				
				$.ajax(
				{
					type: "POST",
					url: "register_proc.php",
					data: string,
					
					success: function(msg) {
						if(msg==1)
						{
		//					alert("success");
							
							register_popup_open();
							
						}
						else
						{
							alert(msg);
						}
						//alert(msg);*/
						//alert($('#find_pw_user_name').val()+' 으로 비밀번호 재설정 메일이 전송되었습니다.');
						//find_pw_popup_close();
						

					}
					
				})		
			}

			function register_popup_close()
			{
				$('#popup_base').css("display","none");
				
				$('#popup_register').css("display","none");
			
				location.href="nddg_main.php";
			}	
				
			function find_pw_popup_open()
			{
				$('#popup_base').height(document.body.scrollHeight);
				$('#popup_base').width(document.body.scrollWidth);
				
				$('#popup_base').css("left",0);
				$('#popup_base').css("top",0);
				$('#popup_base').css("display","");
				
				$('#popup_user_lost').css("left",document.body.scrollWidth/2-292);
				$('#popup_user_lost').css("top",document.body.scrollHeight/2-118);
				
				$('#popup_user_lost').css("display","");
			
			}
			

			function find_pw_popup_send()
			{
				$.ajax(
				{
					type: "POST",
					url: "user_lost_proc.php",
					data: "user_name=" + $('#find_pw_user_name').val(),
					
					success: function(msg) {
						/*if(msg==1)
						{
							alert("success");
						}
						else
						{
							alert("error");
						}
						alert(msg);*/
						alert($('#find_pw_user_name').val()+' 으로 비밀번호 재설정 메일이 전송되었습니다.');
						find_pw_popup_close();
						

					}
					
				})		
			}
			
			function find_pw_popup_close()
			{
				$('#popup_base').css("display","none");
				
				$('#popup_user_lost').css("display","none");
			
			}	
			</script>		

			<!--팝업창 코드 끝-->
		</td>
	</tr>